Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wireapp/core

Package Overview
Dependencies
Maintainers
6
Versions
1848
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wireapp/core

Wire for Web's communication core.

  • 31.3.6
  • Source
  • npm
  • Socket score

Version published
Maintainers
6
Created
Source

Wire

This repository is part of the source code of Wire. You can find more information at wire.com or by contacting opensource@wire.com.

You can find the published source code at github.com/wireapp.

For licensing information, see the attached LICENSE file and the list of third-party licenses at wire.com/legal/licenses/.

Core

Wire for Web's communication core.

Installation

yarn add @wireapp/core

Setup

import {Account} from '@wireapp/core';
import {LoginData} from '@wireapp/api-client/src/auth/';
import {ClientType} from '@wireapp/api-client/src/client';

const credentials: LoginData = {
  clientType: ClientType.TEMPORARY,
  email: 'email@wire.com',
  password: 'password',
};

// Login
const account = new Account();
const {userId, clientId} = await account.login(login);
console.info(`User ID "${userId}", Client ID "${clientId}"`);

// Connect to WebSocket
await account.listen();

Contributing

The following commits will help you getting started quickly with the code base:

Demo

There are some executable examples of using the code. You can find them here:

FAQs

Package last updated on 03 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc